package com.service;

import com.mypg.Comment;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface CommentService {
    List<Comment> selectAllComment();
    int selectComment_count();
    Comment selectCommentByComment_id(int comment_id);
    List<Comment> selectComment_for_comment_table_jsp(String user_nickname, int question_id,
                                                      Timestamp time_start,Timestamp time_end,
                                                      int start_row,int page_nums);
    int selectComment_count_For_comment_table_jsp(String user_nickname, int question_id, Timestamp time_start, Timestamp time_end);
    List<Comment> selectCommentByQuestion_id(int question_id);

    void deleteCommentByComment_id(int comment_id);

    void insertComment(Comment comment);

    void updateComment_valueByComment_id(int comment_id,int comment_value);

}
